package a.f.l;

import a.d.w;

import java.util.Comparator;

class gb
  implements Comparator
{
  private w a;
  
  public gb(w paramw)
  {
    this.a = paramw;
  }
  
  public void a(w paramw)
  {
    this.a = paramw;
  }
  
  public int compare(Object paramObject1, Object paramObject2)
  {
    int j = g.Cc;
    int i = g.Bc;
    x localx1 = (x)paramObject1;
    x localx2 = (x)paramObject2;
    if (j == 0) {
      if (localx1 == null)
      {
        if (j != 0) {
          break label43;
        }
        if (localx2 == null) {
          return 0;
        }
      }
    }
    label43:
    if (j == 0) {
      if (localx1 == null) {
        return -1;
      }
    }
    if (j == 0) {
      if (localx2 == null) {
        return 1;
      }
    }
    if (j == 0) {
      if (localx1.l())
      {
        d1 = Math.abs(localx1.f() - this.a.a);
        if (j != 0) {
          break label131;
        }
        if (i == 0) {
          break label121;
        }
      }
    }
    double d1 = Math.abs(localx1.g() - this.a.b);
    label121:
    if (j == 0) {
      if (localx2.l())
      {
        d2 = Math.abs(localx2.f() - this.a.a);
        if (j != 0) {
          break label185;
        }
        if (i == 0) {
          break label180;
        }
      }
    }
    label131:
    double d2 = Math.abs(localx2.g() - this.a.b);
    label180:
    label185:
    if (j == 0) {
      if (d1 < d2) {
        return -1;
      }
    }
    if (j == 0) {
      if (d1 > d2) {
        return 1;
      }
    }
    return 0;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.l.gb

 * JD-Core Version:    0.7.0.1

 */